package com.example.roundimageview;

import androidx.appcompat.app.AppCompatActivity;

import android.graphics.BitmapFactory;
import android.graphics.Color;
import android.os.Bundle;

import com.example.roundimageview.utils.RoundOne;
import com.example.roundimageview.utils.RoundTwo;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        RoundOne roundOne=findViewById(R.id.iv);
//        roundOne.setImageResource(R.mipmap.buy);
        roundOne.setImageResource(R.mipmap.buy);
        roundOne.setBorderWidth(10,Color.GRAY);

        RoundTwo two=findViewById(R.id.ima);
        two.setBorderWidth(10, Color.GRAY);
        two.setImageBitmap(BitmapFactory.decodeResource(getResources(), R.mipmap.block));
    }
}
